package cqrtplm.vo;

import cqrtplm.dto.thirdPartyAPI.RestAdapterEsReturDTO;
import lombok.Data;

/**
 * @description: 在途订单返回参数
 * @author: zhengxiong.jiang
 * @createDate: 2025-11-02
 * @version: 1.0
 */
@Data
public class TransitOrderResponseVO {

    // 订单号
    private String orderNumber;

    // 项次
    private String itemSequence;

    // 原计划生产日期
    private String originalPlanDate;

    // 交期影响
    private String deliveryImpact;

    // 在制成品处置
    private String wipDisposal;

    // 库存成品处置
    private String inventoryDisposal;

    // 零部件处置
    private String componentDisposal;

    public TransitOrderResponseVO(){

    }

    public TransitOrderResponseVO(CrmApiResponseVO.DdDataVO vo){
        this.orderNumber = vo.getVBELN();
        this.itemSequence = vo.getPOSNR();
        this.originalPlanDate = vo.getERDAT();//需确认

    }

    public TransitOrderResponseVO(RestAdapterEsReturDTO.Tab tab){
        this.orderNumber = tab.getVBELN();
        this.itemSequence = tab.getPOSNR();
        this.originalPlanDate = tab.getERDAT();//需确认
    }

    public TransitOrderResponseVO(MomApiResponseVO.MomOrderDTO dto){
        this.orderNumber = dto.getSoNumber();
        this.itemSequence = dto.getSoLineNum();
        this.originalPlanDate = dto.getDatePc();//需确认
    }

}
